projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c044f
)
Geo geocache icon mappings on input.
author
robertl
<robertl>
Sun, 23 Feb 2003 01:23:40 +0000
(
01:23
+0000)
committer
robertl
<robertl>
Sun, 23 Feb 2003 01:23:40 +0000
(
01:23
+0000)
mapsource.c
patch
|
blob
|
history
diff --git
a/mapsource.c
b/mapsource.c
index 1a74779cadb34624240dfb2eabcd0055098c2b57..76820e32be935604890ac159db1a73f5eea01ad8 100644
(file)
--- a/
mapsource.c
+++ b/
mapsource.c
@@
-203,6
+203,7
@@
static icon_mapping_t icon_table[] = {
{ 16402, "Seaplane Base" },
#if SOMEONE_ELSE
+/* FIXME: Find icons for these */
{ 1, "Virtual cache"},
{ 2, "Micro-Cache"},
{ 3, "Multi-Cache"},
@@
-218,7
+219,6
@@
arglist_t mps_args[] = {
{0, 0, 0}
};
-
const char *
mps_find_desc_from_icon_number(const int icon)
{
@@
-383,6
+383,10
@@
mps_waypt_pr(const waypoint *wpt)
icon = mps_find_icon_number_from_desc(wpt->icon_descr);
+ if (get_cache_icon(wpt)) {
+ icon = mps_find_icon_number_from_desc(get_cache_icon(wpt));
+ }
+
le_write32(&reclen, reclen);
fwrite(&reclen, 4, 1, mps_file_out);
fwrite("W", 1, 1, mps_file_out);